<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{faGlTransBean.page}"/>
		<f:event type="preRenderView" listener="#{faGlTransBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Fa Gl Trans entities"/>

	<ui:define name="header">
		Fa Gl Trans
	</ui:define>

	<ui:define name="subheader">
		Search Fa Gl Trans entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="faGlTransBeanExampleGlNo" value="Gl No:"/>
						<h:panelGroup>
							<h:inputText id="faGlTransBeanExampleGlNo" value="#{faGlTransBean.example.glNo}"/>
							<h:message for="faGlTransBeanExampleGlNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="faGlTransBeanExampleFaAccountCategory" value="Fa Account Category:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{faAccountCategoryBean.converter}" id="faGlTransBeanExampleFaAccountCategory" value="#{faGlTransBean.example.faAccountCategory}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{faAccountCategoryBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="faGlTransBeanExampleFaAccountCategory" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="faGlTransBeanExampleHrEmp" value="Hr Emp:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{hrEmpBean.converter}" id="faGlTransBeanExampleHrEmp" value="#{faGlTransBean.example.hrEmp}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{hrEmpBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="faGlTransBeanExampleHrEmp" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="faGlTransBeanExampleFaJournal" value="Fa Journal:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{faJournalBean.converter}" id="faGlTransBeanExampleFaJournal" value="#{faGlTransBean.example.faJournal}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{faJournalBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="faGlTransBeanExampleFaJournal" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="faGlTransBeanExampleFaChartOfAccount" value="Fa Chart Of Account:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{faChartOfAccountBean.converter}" id="faGlTransBeanExampleFaChartOfAccount" value="#{faGlTransBean.example.faChartOfAccount}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{faChartOfAccountBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="faGlTransBeanExampleFaChartOfAccount" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{faGlTransBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{faGlTransBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="faGlTransBeanPageItems" styleClass="data-table" value="#{faGlTransBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Gl No"/>
					</f:facet>
					<h:link outcome="/faGlTrans/view">
						<f:param name="id" value="#{_item.glNo}"/>
						<h:outputText id="itemGlNo" value="#{_item.glNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Gl Dr Amt"/>
					</f:facet>
					<h:link outcome="/faGlTrans/view">
						<f:param name="id" value="#{_item.glNo}"/>
						<h:outputText id="itemGlDrAmt" value="#{_item.glDrAmt}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Gl Cr Amt"/>
					</f:facet>
					<h:link outcome="/faGlTrans/view">
						<f:param name="id" value="#{_item.glNo}"/>
						<h:outputText id="itemGlCrAmt" value="#{_item.glCrAmt}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Gl Status Dr Cr"/>
					</f:facet>
					<h:link outcome="/faGlTrans/view">
						<f:param name="id" value="#{_item.glNo}"/>
						<h:outputText id="itemGlStatusDrCr" value="#{_item.glStatusDrCr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Gl Status Is Close"/>
					</f:facet>
					<h:link outcome="/faGlTrans/view">
						<f:param name="id" value="#{_item.glNo}"/>
						<h:outputText id="itemGlStatusIsClose" value="#{_item.glStatusIsClose}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{faGlTransBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
